package com.ruoyi.decision.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 预案库对象 s_plm_rts_template_plan
 * 
 * @author zbw
 * @date 2022-07-20
 */
public class TemplatePlan extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 预案库ID */
    private String templateId;

    /** 预案库分类ID */
    @Excel(name = "预案库分类ID")
    private String templateTypeId;

    /** 原预案ID */
    @Excel(name = "原预案ID")
    private String schemeId;

    /** 预案XML模板 */
    @Excel(name = "预案XML模板")
    private String templateXml;

    /** 添加时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "添加时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date addTime;

    public void setTemplateId(String templateId) 
    {
        this.templateId = templateId;
    }

    public String getTemplateId() 
    {
        return templateId;
    }
    public void setTemplateTypeId(String templateTypeId) 
    {
        this.templateTypeId = templateTypeId;
    }

    public String getTemplateTypeId() 
    {
        return templateTypeId;
    }
    public void setSchemeId(String schemeId) 
    {
        this.schemeId = schemeId;
    }

    public String getSchemeId() 
    {
        return schemeId;
    }
    public void setTemplateXml(String templateXml) 
    {
        this.templateXml = templateXml;
    }

    public String getTemplateXml() 
    {
        return templateXml;
    }
    public void setAddTime(Date addTime) 
    {
        this.addTime = addTime;
    }

    public Date getAddTime() 
    {
        return addTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("templateId", getTemplateId())
            .append("templateTypeId", getTemplateTypeId())
            .append("schemeId", getSchemeId())
            .append("templateXml", getTemplateXml())
            .append("addTime", getAddTime())
            .toString();
    }
}
